{% extends "split_header_template.html" %}
{% load django_metatagging_tags %}

{% block content_header %}
{% endblock %}

{% block main_content %}
	{% ifequal sort "completed" %}
	{% else %}
		<div id='sort' class='sort_wrapper'>
        	{% include "core/elements/order.html" %}
    	</div>
    {% endifequal %}
  	<div id='requests_wrapper' class='content_wrapper'>
        {% for object in current_page.object_list %}
            {% include "core/elements/request_row.html" %}
        {% endfor %}
        {% include "util/pagination.html" %}
    </div>
{% endblock %}

{% block sidebar %}
    <div class='right_wrapper'>
    	<div id='site_info' class='info_sidebar'>
    		<h2>Site Info</h2>
    		<ul>
    		    <li>Django Voice is an open source Django project that let's your users submit feature requests and bug
    		    reports + commenting + voting + open id integration.</li>
    			<li>There are currently {{feature_count}} open feature requests and {{bug_count}} bug reports.</li>
		        <div class='clear'></div>
		    </ul>
		</div>
		<div id='active_tags' class='info_sidebar'>
			<h2>Most Active Tags</h2>
			<ul>
				{% active_tags request_content_type as most_active_tags %}
				{% for tag in most_active_tags %}
					<li><a href='{% url objects-with-tag request_content_type, tag.name %}' class='tag'>{{tag.name}}</a></li>
				{% endfor %}
				<div class='clear'></div>
			</ul>
		</div>
    </div>
{% endblock %}
